<include file="Public/head"/>
<link href="__PUBLIC__/layui/css/layui.css" rel="stylesheet" type="text/css" />
<!-- <script src="__PUBLIC__/layui/layui.js"></script> -->
<body class="no-skin">
<include file="Public/header"/>
<div class="main-container" id="main-container">
<style>
th{
    font-size:19px;
    color:#000;
}

</style>
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }

    </script>

    <include file="Public/sidebar"/>
    <div class="main-content">
        <div class="main-content-inner">
            <!-- #section:basics/content.breadcrumbs -->
            <include file="Public/breadcrumbs"/>

            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">
                <include file="Public/set"/>
                    <div class="row">
                    <div class="col-xs-12">
                        <div style="width:100%;margin-top:5px;">
                            <button class="layui-btn layui-btn-big layui-btn-normal" onclick="ji()">集团</button>
                            <button class="layui-btn layui-btn-big " onclick="yi()">医院</button>
                        </div>
    
                        <div style="width:100%;height:1px;background-color:#000;margin-top:10px;"></div>

                        <form  style="width:40%;margin-top:7%;margin-left:30%;" id="formid">
                        <input type="hidden" name='name' value="到诊完成率">
                        <input type="hidden" name='name2' value="成本控制率">
                        <table class="table table-bordered" >
                            <thead>
                                <tr>
                                    <th class="center" colspan="4">集团财务指标</th>
                                </tr>
                                <tr>
                                    <th class="center">衡量指标</th>
                                    <th class="center">衡量结果核算结果</th>
                                    <th class="center">标准分</th>
                                    <th class="center">考核得分</th>
                                    
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <th class="center">到诊完成率</th>
                                    <td class="center"><input type="text" style="width:100%; border:0; " name="result"></td>
                                    <td class="center"><input type="text" style="width:100%; border:0; " name="standard"></td>
                                    <td class="center"><input type="text" style="width:100%; border:0; " name="score"></td>
                                </tr> 
                                <tr> 
                                    <th class="center">成本控制率</th> 
                                    <td class="center"><input type="text" style="width:100%; border:0; " name="result2"></td>
                                    <td class="center"><input type="text" style="width:100%; border:0; " name="standard2"></td>
                                    <td class="center"><input type="text" style="width:100%; border:0; " name="score2"></td>
                                </tr>
                                <tr>
                                    <td class="center" colspan="4"> <div class="layui-btn layui-btn-radius" onclick="jituan()" style="width:100px">提交</div></td>
                                
                                </tr>
                            </tbody>
                        </table>
                        </form>




                        

                        <form action="" style="width:40%;margin-top:5%;margin-left:30%;display:none;" id="formid2">
                        <table class="table table-bordered" >
                            <thead>
                                <tr>
                                    <th class="center " colspan="4">医院财务指标</th>
                                </tr>
                                <tr>
                                    <th class="center">医院名称</th>
                                    <th class="center">衡量结果核算结果</th>
                                    <th class="center">标准分</th>
                                    <th class="center">考核得分</th>
                                    
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <th class="center">唐山现代</th>
                                    <td class="center"><input type="text" style="width:100%; border:0; "></td>
                                    <td class="center"><input type="text" style="width:100%; border:0; "></td>
                                    <td class="center"><input type="text" style="width:100%; border:0; "></td>
                                </tr>
                                <tr>
                                    <th class="center">威海北大</th>
                                    <td class="center"><input type="text" style="width:100%; border:0; "></td>
                                    <td class="center"><input type="text" style="width:100%; border:0; "></td>
                                    <td class="center"><input type="text" style="width:100%; border:0; "></td>
                                </tr>
                                <tr>
                                    <th class="center">连云港九龙</th>
                                    <td class="center"><input type="text" style="width:100%; border:0; "></td>
                                    <td class="center"><input type="text" style="width:100%; border:0; "></td>
                                    <td class="center"><input type="text" style="width:100%; border:0; "></td>
                                </tr>
                                <tr>
                                    <th class="center">连云港国泰</th>
                                    <td class="center"><input type="text" style="width:100%; border:0; "></td>
                                    <td class="center"><input type="text" style="width:100%; border:0; "></td>
                                    <td class="center"><input type="text" style="width:100%; border:0; "></td>
                                </tr>
                                <tr>
                                    <th class="center">福州泌尿</th>
                                    <td class="center"><input type="text" style="width:100%; border:0; "></td>
                                    <td class="center"><input type="text" style="width:100%; border:0; "></td>
                                    <td class="center"><input type="text" style="width:100%; border:0; "></td>
                                </tr>
                                <tr>
                                    <th class="center">唐山牙博士</th>
                                    <td class="center"><input type="text" style="width:100%; border:0; "></td>
                                    <td class="center"><input type="text" style="width:100%; border:0; "></td>
                                    <td class="center"><input type="text" style="width:100%; border:0; "></td>
                                </tr>
                                <tr>
                                    <td class="center" colspan="4"> <button class="layui-btn layui-btn-radius" style="width:100px">提交</button></td>
                                
                                </tr>
                            </tbody>
                        </table>
                        </form>















 
                    </div>
                    </div>
                    
            </div><!-- /.page-content -->
        </div>
    </div><!-- /.main-content -->
    <include file="Public/footer"/>

</div><!-- /.main-container -->

<include file="Public/footerjs"/>
<!-- inline scripts related to this page -->
<script src="__PUBLIC__/qwadmin/js/date-time/bootstrap-datepicker.js"></script>
<script src="__PUBLIC__/qwadmin/js/function.js"></script>
<!-- <script src="__PUBLIC__/layer/layer.js"></script> -->
<script src="__PUBLIC__/layer/layer.js"></script>
<script type="text/javascript">


function ji()
{
    $('#formid2').hide();
    $('#formid').show();
}
function yi()
{
    $('#formid2').show();
    $('#formid').hide();
}
function jituan()
{
     //询问框
    layer.confirm('确定通过么 ( ・◇・)？', {
      btn: ['确定','取消'] //按钮
    }, function(){
         $.ajax({
             type: "POST",
             url:"{:U('cai')}",
             data:$('#formid').serialize(),// 要提交的表单 
             beforeSend:function(){
                    layer.load(0, {shade: false});
                },
             success: function(msg) {
             
               if (msg == 1111) {
                    layer.msg('提交成功', {icon: 1});
                    history.go(0);
                     // history.go(0); 
               }else{
                    if (msg == '您不是评分人') {
                        layer.msg('您不是评分人', {icon: 2});
                    }else{
                        if (msg == '请不要重复评分') {
                            layer.msg('请不要重复评分', {icon: 2});
                        }else{
                            layer.msg('提交错误', {icon: 2});
                        }
                    }
               }
             },
            complete: function() {
                layer.closeAll('loading');
            }
         });
     
    }, function(){
        layer.msg(' (｡・`ω´･) 再见');
    });     
        
    
}

</script>
</body>
</html>



